gtk4.git
10 years agoMakefile-newvs: some .vcxproj.filters files are in builddir, some in srcdir
Simon McVittie [Mon, 20 Apr 2015 13:54:28 +0000 (14:54 +0100)]
Makefile-newvs: some .vcxproj.filters files are in builddir, some in srcdir

Without this change, out-of-tree distcheck doesn't get very far.

Similarly, allow *.vcxproj, *.props to be in either the builddir or
the srcdir.

Finally, since I'm touching these lines anyway, eliminate some
useless uses of cat: "cat x | sed 's/foo/bar/' > y" is
equivalent to "sed 's/foo/bar/' < x > y".

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=748176
Reviewed-by: Chun-wei Fan <fanchunwei@src.gnome.org>
10 years agoAdwaita: .title and .subtitle paddings
Lapo Calamandrei [Tue, 28 Apr 2015 14:52:46 +0000 (16:52 +0200)]
Adwaita: .title and .subtitle paddings

Only set side paddings for title and subtitle classes, we had 0
vertical padding set there, no idea why, so let's find out...

10 years agogtk-builder-tool: Separate commands
Matthias Clasen [Tue, 28 Apr 2015 03:31:03 +0000 (23:31 -0400)]
gtk-builder-tool: Separate commands

Add separate commands for validation and simplification.

10 years agoGtkWindow: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:08:43 +0000 (23:08 -0400)]
GtkWindow: Use _gtk_builder_lookup_object

10 years agoGtkWidget: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:08:28 +0000 (23:08 -0400)]
GtkWidget: Use _gtk_builder_lookup_object

10 years agoGtkSizeGroup: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:08:07 +0000 (23:08 -0400)]
GtkSizeGroup: Use _gtk_builder_lookup_object

10 years agoGtkInfoBar: Add a test for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 03:07:48 +0000 (23:07 -0400)]
GtkInfoBar: Add a test for 'invalid ID'

10 years agoGtkInfoBar: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:06:06 +0000 (23:06 -0400)]
GtkInfoBar: Use _gtk_builder_lookup_object

10 years agoGtkDialog: Add a test for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 03:05:49 +0000 (23:05 -0400)]
GtkDialog: Add a test for 'invalid ID'

10 years agoGtkDialog: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:03:01 +0000 (23:03 -0400)]
GtkDialog: Use _gtk_builder_lookup_object

10 years agoGtkContainer: Add a test for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 03:01:46 +0000 (23:01 -0400)]
GtkContainer: Add a test for 'invalid ID'

...and add all the container tests to Makefile.am

10 years agoGtkContainer: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 02:59:20 +0000 (22:59 -0400)]
GtkContainer: Use _gtk_builder_lookup_object

10 years agoGtkBuilder: Report 'invalid ID' errors
Matthias Clasen [Tue, 28 Apr 2015 02:56:53 +0000 (22:56 -0400)]
GtkBuilder: Report 'invalid ID' errors

Look for a stashed GError after calling custom_tag_end,
custom_finished or parser_finished vfuncs, and report
them up.

10 years agoGtkBuilder: Add new convenience API
Matthias Clasen [Tue, 28 Apr 2015 02:54:25 +0000 (22:54 -0400)]
GtkBuilder: Add new convenience API

Add a convenience function that is like gtk_builder_get_object()
but stashes away a GError if a lookup fails. To make the error
message informative, the function takes a line/column pair.

Doing things this way is necessary because the custom_tag_end,
custom_finished, and parser_finished vfuncs don't take a
GError parameter, despite being called from a place where
we can report a GError back.

10 years agoGtkBuilder: Document private convenience API
Matthias Clasen [Tue, 28 Apr 2015 02:53:42 +0000 (22:53 -0400)]
GtkBuilder: Document private convenience API

10 years agoGtkBuilder: Add an error code for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 02:52:03 +0000 (22:52 -0400)]
GtkBuilder: Add an error code for 'invalid ID'

This is in preparation for reporting such errors through GError.

10 years agoAdjust affected tests
Matthias Clasen [Mon, 27 Apr 2015 23:21:45 +0000 (19:21 -0400)]
Adjust affected tests

10 years agoGtkLabel: Prefix more ui parser errors
Matthias Clasen [Mon, 27 Apr 2015 23:20:29 +0000 (19:20 -0400)]
GtkLabel: Prefix more ui parser errors

This may become useful in gnome-builder for highlighting errors,
so do it consistently.

10 years agoFormatting fixes
Matthias Clasen [Mon, 27 Apr 2015 23:16:41 +0000 (19:16 -0400)]
Formatting fixes

10 years agoAdd gtk-builder-tool.c to POTFILES.in
Matthias Clasen [Mon, 27 Apr 2015 22:55:14 +0000 (18:55 -0400)]
Add gtk-builder-tool.c to POTFILES.in

10 years agoAdd a man page for gtk-builder-tool
Matthias Clasen [Mon, 27 Apr 2015 22:51:46 +0000 (18:51 -0400)]
Add a man page for gtk-builder-tool

10 years agoTranslate error messages
Matthias Clasen [Mon, 27 Apr 2015 22:39:22 +0000 (18:39 -0400)]
Translate error messages

10 years agoDo validation before simplification
Matthias Clasen [Mon, 27 Apr 2015 22:25:09 +0000 (18:25 -0400)]
Do validation before simplification

Use GtkBuilder to parse the file first, and report any errors
it finds before using our own simple-minded parser to simplify.

10 years agoAdd a simple commandline tool for ui files
Matthias Clasen [Sun, 19 Apr 2015 01:03:52 +0000 (21:03 -0400)]
Add a simple commandline tool for ui files

This tool strips properties which are set to their
default value from .ui files.

10 years agogdkkeys: Add support to _get_scroll_lock_state()
Fabiano Fidêncio [Tue, 14 Apr 2015 11:25:38 +0000 (13:25 +0200)]
gdkkeys: Add support to _get_scroll_lock_state()

GdkKeymap already has support for _get_num_lock_state() and
_get_caps_lock_state(). Adding _get_scroll_lock_state() would be good
for completness and some backends (Windows?) could take advantage of
this.

10 years agogtk-encode-symbolic-svg: Mark all strings for translation
Matthias Clasen [Mon, 27 Apr 2015 22:56:16 +0000 (18:56 -0400)]
gtk-encode-symbolic-svg: Mark all strings for translation

A few error messages were missing.

10 years agoHC: include a missing sass function
Jakub Steiner [Mon, 27 Apr 2015 22:33:17 +0000 (00:33 +0200)]
HC: include a missing sass function

- used in the color widget

10 years agoUpdated POTFILES.skip
Piotr Drąg [Mon, 27 Apr 2015 18:15:05 +0000 (20:15 +0200)]
Updated POTFILES.skip

10 years agostylecontext: Clear style property more frequently
Benjamin Otte [Mon, 27 Apr 2015 17:15:43 +0000 (19:15 +0200)]
stylecontext: Clear style property more frequently

We want to clear the style property cache whenever things change in the
tree, not as we previously did only when those changes actually lead to
a different CSS style.

10 years agoHC: tone down backdrop for gtk switches
Jakub Steiner [Mon, 27 Apr 2015 15:33:40 +0000 (17:33 +0200)]
HC: tone down backdrop for gtk switches

https://bugzilla.gnome.org/show_bug.cgi?id=746925

10 years agoHAVE_MONITOR_INFO is always defined
Jose Rostagno [Mon, 20 Apr 2015 00:51:46 +0000 (21:51 -0300)]
HAVE_MONITOR_INFO is always defined

https://bugzilla.gnome.org/show_bug.cgi?id=748156

10 years agodrop old compat code, BITMAPV5HEADER is defined on vista+
Jose Rostagno [Mon, 20 Apr 2015 00:44:03 +0000 (21:44 -0300)]
drop old compat code, BITMAPV5HEADER is defined on vista+

https://bugzilla.gnome.org/show_bug.cgi?id=748156

10 years agoWM_CLIPBOARDUPDATE is always define on vista+
Jose Rostagno [Sun, 19 Apr 2015 23:17:53 +0000 (20:17 -0300)]
WM_CLIPBOARDUPDATE is always define on vista+

https://msdn.microsoft.com/en-us/library/windows/desktop/ms649021%28v=vs.85%29.aspx

https://bugzilla.gnome.org/show_bug.cgi?id=748156

10 years agoSimplify code a bit after xp support drop
Jose Rostagno [Sun, 19 Apr 2015 23:04:53 +0000 (20:04 -0300)]
Simplify code a bit after xp support drop

https://bugzilla.gnome.org/show_bug.cgi?id=748156

10 years agobuild: Avoid xgettext crash on MSYS2
Daiki Ueno [Thu, 23 Apr 2015 00:42:45 +0000 (09:42 +0900)]
build: Avoid xgettext crash on MSYS2

isatty() on MSYS2 returns non-zero if the fd is stdout and is redirected
to /dev/null.  That lets xgettext to produce colorized output and leads
to an assertion failure during terminal type detection.

Although the problem should be fixed in MSYS2, isatty() could behave
wrongly in many ways on Windows.  Since gtk+ doesn't need colorized
output, it would be safer to bypass the terminal dependent code.

See also:
https://lists.gnu.org/archive/html/bug-gettext/2015-04/msg00004.html

https://bugzilla.gnome.org/show_bug.cgi?id=748346

10 years agogdk: don't segfault on beep with offscreen window
Christian Hergert [Wed, 22 Apr 2015 23:35:29 +0000 (16:35 -0700)]
gdk: don't segfault on beep with offscreen window

https://bugzilla.gnome.org/show_bug.cgi?id=748341

10 years agodocs: Fix incorrect cross-reference to GtkSearchBar
Kai Willadsen [Sun, 26 Apr 2015 21:49:28 +0000 (07:49 +1000)]
docs: Fix incorrect cross-reference to GtkSearchBar

https://bugzilla.gnome.org/show_bug.cgi?id=748500

10 years agoFix the build
Matthias Clasen [Mon, 27 Apr 2015 10:15:28 +0000 (06:15 -0400)]
Fix the build

There was one too many dialog test cases in the Makefile.

https://bugzilla.gnome.org/show_bug.cgi?id=748509

10 years agoAdjust builder tests
Matthias Clasen [Mon, 27 Apr 2015 02:55:31 +0000 (22:55 -0400)]
Adjust builder tests

Some errors are now returned as markup errors instead of builder
errors. Adjust the tests for this.

10 years agoGtkTreeStore: Use the new helpers
Matthias Clasen [Sun, 26 Apr 2015 14:32:05 +0000 (10:32 -0400)]
GtkTreeStore: Use the new helpers

Use the new GtkBuilder helpers and g_markup_collect_attributes
in all builder subparsers.

10 years agoGtkListStore: Use the new helpers
Matthias Clasen [Sun, 26 Apr 2015 14:30:15 +0000 (10:30 -0400)]
GtkListStore: Use the new helpers

Use the new GtkBuilder helpers and g_markup_collect_attributes
in all builder subparsers.

10 years agoGtkComboBoxText: Use the new helpers
Matthias Clasen [Sun, 26 Apr 2015 14:26:07 +0000 (10:26 -0400)]
GtkComboBoxText: Use the new helpers

Use the new GtkBuilder helpers and g_markup_collect_attributes
in all builder subparsers.

10 years agoAdjust existing tests
Matthias Clasen [Sun, 26 Apr 2015 00:51:56 +0000 (20:51 -0400)]
Adjust existing tests

10 years agoGtkWindow: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:37:31 +0000 (19:37 -0400)]
GtkWindow: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoGtkWidget: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:37:02 +0000 (19:37 -0400)]
GtkWidget: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoGtkSizeGroup: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:36:39 +0000 (19:36 -0400)]
GtkSizeGroup: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoGtkRecentFilter: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:36:09 +0000 (19:36 -0400)]
GtkRecentFilter: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the infobar builder parser
Matthias Clasen [Mon, 27 Apr 2015 03:03:05 +0000 (23:03 -0400)]
Add tests for the infobar builder parser

10 years agoGtkInfoBar: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:35:22 +0000 (19:35 -0400)]
GtkInfoBar: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the GtkFileFilter builder parser
Matthias Clasen [Sun, 26 Apr 2015 19:24:11 +0000 (15:24 -0400)]
Add tests for the GtkFileFilter builder parser

10 years agoGtkFileFilter: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:34:34 +0000 (19:34 -0400)]
GtkFileFilter: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the GtkDialog builder parser
Matthias Clasen [Sun, 26 Apr 2015 19:03:03 +0000 (15:03 -0400)]
Add tests for the GtkDialog builder parser

10 years agoGtkDialog: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:33:52 +0000 (19:33 -0400)]
GtkDialog: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for GtkLevelBar builder parser
Matthias Clasen [Sun, 26 Apr 2015 15:45:21 +0000 (11:45 -0400)]
Add tests for GtkLevelBar builder parser

10 years agoGtkLevelBar: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 15:22:10 +0000 (11:22 -0400)]
GtkLevelBar: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for GtkContainer builder parser
Matthias Clasen [Sun, 26 Apr 2015 03:58:08 +0000 (23:58 -0400)]
Add tests for GtkContainer builder parser

10 years agoGtkContainer: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 23:31:10 +0000 (19:31 -0400)]
GtkContainer: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the GtkScale builder parser
Matthias Clasen [Sat, 25 Apr 2015 15:24:40 +0000 (11:24 -0400)]
Add tests for the GtkScale builder parser

These tests check various error conditions in GtkScale
custom tags.

10 years agoGtkScale: Use the new helpers
Matthias Clasen [Sat, 25 Apr 2015 15:22:30 +0000 (11:22 -0400)]
GtkScale: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the GtkCellLayout builder parser
Matthias Clasen [Sat, 25 Apr 2015 01:21:05 +0000 (21:21 -0400)]
Add tests for the GtkCellLayout builder parser

These tests check various error conditions in GtkCellLayout
custom tags.

10 years agoGtkCellLayout: Use the new helpers
Matthias Clasen [Thu, 23 Apr 2015 00:21:38 +0000 (19:21 -0500)]
GtkCellLayout: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoAdd tests for the GtkLabel builder parser
Matthias Clasen [Wed, 22 Apr 2015 15:59:12 +0000 (10:59 -0500)]
Add tests for the GtkLabel builder parser

These tests check various error conditions in GtkLabel
custom tags.

10 years agoGtkLabel: Use the new helpers
Matthias Clasen [Wed, 22 Apr 2015 15:57:38 +0000 (10:57 -0500)]
GtkLabel: Use the new helpers

Instead of issuing g_warning, fill the provided GError.
This lets us test this error handling, and is the right
thing to do. Use the new GtkBuilder helpers and
g_markup_collect_attributes to do so.

10 years agoGtkBuilder: Introduce some private helpers
Matthias Clasen [Sun, 26 Apr 2015 07:07:56 +0000 (03:07 -0400)]
GtkBuilder: Introduce some private helpers

Add functions that help reporting errors from builder
subparsers consistently.

10 years agoGtkBuilder: Unify builder error messages
Matthias Clasen [Sat, 25 Apr 2015 23:29:40 +0000 (19:29 -0400)]
GtkBuilder: Unify builder error messages

Don't use <%s> for an attribute.

10 years agoGtkDialog: Fix up docs
Matthias Clasen [Sun, 26 Apr 2015 15:54:02 +0000 (11:54 -0400)]
GtkDialog: Fix up docs

The ui fragment in the example was causing a critical
warning, which is not nice. Fix it to work properly.

10 years agodocs: Add an cross-reference to template docs
Matthias Clasen [Tue, 21 Apr 2015 12:12:58 +0000 (07:12 -0500)]
docs: Add an cross-reference to template docs

10 years agoGtkActionable: Fix small doc formatting issues
Matthias Clasen [Tue, 21 Apr 2015 12:07:51 +0000 (07:07 -0500)]
GtkActionable: Fix small doc formatting issues

10 years agoGtkApplicationWindow: Fix small doc formatting issues
Matthias Clasen [Tue, 21 Apr 2015 12:07:31 +0000 (07:07 -0500)]
GtkApplicationWindow: Fix small doc formatting issues

10 years agoGtkApplication: Fix some small doc formatting issues
Matthias Clasen [Mon, 20 Apr 2015 22:35:43 +0000 (18:35 -0400)]
GtkApplication: Fix some small doc formatting issues

10 years agogl area: Add a few missing docs
Matthias Clasen [Mon, 20 Apr 2015 21:52:48 +0000 (17:52 -0400)]
gl area: Add a few missing docs

10 years agodocs: Update list of ignored headers
Matthias Clasen [Mon, 20 Apr 2015 21:50:11 +0000 (17:50 -0400)]
docs: Update list of ignored headers

10 years agoUpdated Czech translation
Marek Černocký [Sat, 25 Apr 2015 11:12:25 +0000 (13:12 +0200)]
Updated Czech translation

10 years agoUpdated Czech translation
Marek Černocký [Sat, 25 Apr 2015 08:28:41 +0000 (10:28 +0200)]
Updated Czech translation

10 years agoUpdated Icelandic translation
Sveinn í Felli [Fri, 24 Apr 2015 14:21:49 +0000 (14:21 +0000)]
Updated Icelandic translation

10 years agoUpdated Icelandic translation
Sveinn í Felli [Fri, 24 Apr 2015 14:21:07 +0000 (14:21 +0000)]
Updated Icelandic translation

10 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Fri, 17 Apr 2015 15:29:37 +0000 (15:29 +0000)]
Updated Brazilian Portuguese translation

10 years agoAdwaita: fix selected backdrop list rows.
Lapo Calamandrei [Thu, 23 Apr 2015 20:45:23 +0000 (22:45 +0200)]
Adwaita: fix selected backdrop list rows.

A misplaced selector was making backdrop selected list rows vanish
on hover, fixed. Thanks to Florian for spotting.

10 years agowayland: Add support for gtk_window_set_modal
Jonas Ådahl [Fri, 6 Mar 2015 03:40:12 +0000 (11:40 +0800)]
wayland: Add support for gtk_window_set_modal

Add two new requests to the gtk_surface interface: set_modal and
unset_modal. The server will currently not do anything special with
input focus, and its up to the client to ignore events on the parent
surface.

This commit bumps the gtk_shell interface version to 2. By connecting to
a Wayland server with another gtk_shell interface version any features
depending on the gtk_shell protocol will not be available.

https://bugzilla.gnome.org/show_bug.cgi?id=745721

10 years agoAdwaita: entry: some sass refactoring.
Lapo Calamandrei [Wed, 22 Apr 2015 15:43:37 +0000 (17:43 +0200)]
Adwaita: entry: some sass refactoring.

10 years agoAdwaita: vertically linked entries fix.
Lapo Calamandrei [Wed, 22 Apr 2015 14:09:29 +0000 (16:09 +0200)]
Adwaita: vertically linked entries fix.

I was axing the edge hilight on the last linked entry which needs
to be there, fixed.

10 years agoAdwaita: .entry.error/.entry.warning dark variant love
Lapo Calamandrei [Wed, 22 Apr 2015 13:54:04 +0000 (15:54 +0200)]
Adwaita: .entry.error/.entry.warning dark variant love

10 years agoAdwaita: simplify entry vertical linking.
Lapo Calamandrei [Wed, 22 Apr 2015 12:42:58 +0000 (14:42 +0200)]
Adwaita: simplify entry vertical linking.

Now it should be "right" in basically every combination of entries
and buttons.

10 years agoGtkPopover:pointing-to: GdkRectangle instead of cairo_rectangle_int_t
Kjell Ahlstedt [Tue, 21 Apr 2015 07:05:26 +0000 (09:05 +0200)]
GtkPopover:pointing-to: GdkRectangle instead of cairo_rectangle_int_t

cairo_rectangle_int_t was replaced by GdkRectangle in commit
552c29b488ecd7bcc3303dd5514ce6dbfff04437, but the type of the pointing-to
property was not changed.

To avoid breaking old code that sets or gets the property with a GValue
of type CAIRO_GOBJECT_TYPE_RECTANGLE_INT, transformation functions between
CAIRO_GOBJECT_TYPE_RECTANGLE_INT and GDK_TYPE_RECTANGLE are registered on
the first call to gdk_rectangle_get_type().

https://bugzilla.gnome.org/show_bug.cgi?id=723394

10 years agoUpdated Ukrainian translation
Daniel Korostil [Mon, 20 Apr 2015 18:10:03 +0000 (21:10 +0300)]
Updated Ukrainian translation

10 years agoAdwaita: simplify entries.
Lapo Calamandrei [Mon, 20 Apr 2015 16:36:10 +0000 (18:36 +0200)]
Adwaita: simplify entries.

By drawing the background w/o using 3 inset shadows, same or better effect,
cleaner and simpler scss, possibly better rendering performances.

10 years agoImprove the docs for gdk_window_set_opaque_region
Matthias Clasen [Sat, 18 Apr 2015 16:54:45 +0000 (12:54 -0400)]
Improve the docs for gdk_window_set_opaque_region

Fix several typos and annotate the region parameter
as allow-none.

10 years agowayland: Don't unset the selected mimetype on drop_reply
Carlos Garnacho [Sat, 18 Apr 2015 16:02:50 +0000 (18:02 +0200)]
wayland: Don't unset the selected mimetype on drop_reply

gdk_wayland_drop_context_set_status() can't do much else currently besides
picking a mimetype (the first one is currently chosen). This may incorrectly
unset the mimetype chosen on .receive(), so the transfer is cancelled before
it even starts.

At the time drop_reply happens, we should have already picked a mimetype
along the way, so only cover for accepted=FALSE in order to unset it.

10 years agowayland: Plug leak
Carlos Garnacho [Tue, 7 Apr 2015 14:58:01 +0000 (16:58 +0200)]
wayland: Plug leak

We leak refs on the dest window if it gets set multiple times, expected to
happen as the DnD operation moves across the window.

10 years agowayland: Create internal GdkWindow to be set as the DnD source
Carlos Garnacho [Tue, 7 Apr 2015 14:23:38 +0000 (16:23 +0200)]
wayland: Create internal GdkWindow to be set as the DnD source

During drag operations from another client, we currently set no window as
the DnD source. There's paths in upper layers though that rely on it being
set, just that we don't trigger these yet.

10 years agoGtkMessageDialog: Minor documentation update
Michael Catanzaro [Fri, 17 Apr 2015 15:10:58 +0000 (10:10 -0500)]
GtkMessageDialog: Minor documentation update

Icons went away in 3.12

https://bugzilla.gnome.org/show_bug.cgi?id=748061

10 years agogdkcolor.h: Use GDK_DEPRECATED_IN_3_14_FOR() throughout
Federico Mena Quintero [Fri, 17 Apr 2015 16:16:07 +0000 (11:16 -0500)]
gdkcolor.h: Use GDK_DEPRECATED_IN_3_14_FOR() throughout

So that lazy people like me can see in the header file which new functions to use.

10 years agoGtkRange: fix horizontal scrolling
Lars Uebernickel [Wed, 15 Apr 2015 13:27:04 +0000 (15:27 +0200)]
GtkRange: fix horizontal scrolling

https://bugzilla.gnome.org/show_bug.cgi?id=737175

10 years agoAdwaita: scrollbar contrast bump
Lapo Calamandrei [Fri, 17 Apr 2015 13:33:04 +0000 (15:33 +0200)]
Adwaita: scrollbar contrast bump

10 years agobuild/Makfile-newvs.am: Use Pattern Rules
Chun-wei Fan [Fri, 17 Apr 2015 05:59:28 +0000 (13:59 +0800)]
build/Makfile-newvs.am: Use Pattern Rules

Make use of pattern rules when generating the Visual Studio 2012/2013
Projects from the Visual Studio 2010 projects, which will help to clean up
the file and also avoid problems when running items like 'make -jN dist'.

10 years agoW32: Support horizontal mouse wheel scrolling
Руслан Ижбулатов [Thu, 16 Apr 2015 23:11:14 +0000 (23:11 +0000)]
W32: Support horizontal mouse wheel scrolling

https://bugzilla.gnome.org/show_bug.cgi?id=748014

10 years agogdk-win32: Clean Up A Bit
Chun-wei Fan [Wed, 15 Apr 2015 09:17:06 +0000 (17:17 +0800)]
gdk-win32: Clean Up A Bit

As GLib dropped Windows 2000 support some time ago [1][2], and the current
git master already depends on a GLib release that is well after it dropped
Windows 2000 support, clean up the code a bit as we are assured that the
code will run on XP and later, plus, we have dropped XP support during
this cycle with commit b85f0cc.

https://bugzilla.gnome.org/show_bug.cgi?id=741849

[1]: https://git.gnome.org/browse/glib/commit/?id=80c24d36f2525d83e458ebbdf62fdbd085945a02
[2]: https://git.gnome.org/browse/glib/commit/?id=731b46990896665a8107535080bb075a6e18b6f7

10 years agoRevert "gdk-win32: Clean Up A Bit"
Chun-wei Fan [Fri, 17 Apr 2015 03:29:07 +0000 (11:29 +0800)]
Revert "gdk-win32: Clean Up A Bit"

This reverts commit 24d3f3fcb2894df110a17317260b8705d68d22ec.

Sorry, I am going to re-commit this very shortly with a new
commit message, as I found the commit message to be quite
wrong and misleading.

10 years agogdk-win32: Really Implement GdkScreen->is_composited()
Chun-wei Fan [Wed, 15 Apr 2015 09:44:55 +0000 (17:44 +0800)]
gdk-win32: Really Implement GdkScreen->is_composited()

The current GdkScreen->is_composited() is a stub as we were having Windows
XP being supported, which does not support Desktop Window Manager (DWM),
which is used by Windows for composition.

Windows Vista and later support DWM, and it is always enabled on Windows 8/
Server 2012 and later.

Please note that as we are dropping XP support in this cycle, this is the
commit that would say goodbye to Windows XP support for GTK+-3.x, by
linking directly to dwmapi.dll.  This means, we only check whether we are
on Windows 8 or Server 2012 (or later) to see whether we unconditionally
have composition enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=741849

10 years agogdk-win32: Clean Up A Bit
Chun-wei Fan [Wed, 15 Apr 2015 09:17:06 +0000 (17:17 +0800)]
gdk-win32: Clean Up A Bit

As GLib dropped XP support some time ago [1][2], and the current git master already
depends on a GLib release that is well after it dropped XP support, clean
up the code a bit as we are assured that the code will run on XP and later,
plus, we are dropping XP support during this cycle (i.e. very soon).

https://bugzilla.gnome.org/show_bug.cgi?id=741849

[1]: https://git.gnome.org/browse/glib/commit/?id=80c24d36f2525d83e458ebbdf62fdbd085945a02
[2]: https://git.gnome.org/browse/glib/commit/?id=731b46990896665a8107535080bb075a6e18b6f7